package com.zkthink.ceres.store.entity;

import cn.afterturn.easypoi.excel.annotation.Excel;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.zkthink.base.entity.Entity;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.*;
import lombok.experimental.Accessors;
import org.hibernate.validator.constraints.Length;

import javax.validation.constraints.NotBlank;
import java.math.BigDecimal;
import java.time.LocalDateTime;

import static com.baomidou.mybatisplus.annotation.SqlCondition.LIKE;

/**
 * <p>
 * 实体类
 *
 * </p>
 *
 * @author chenke
 * @since 2022-04-22
 */
@Data
@NoArgsConstructor
@ToString(callSuper = true)
@EqualsAndHashCode(callSuper = true)
@Accessors(chain = true)
@TableName("applet_withdraw")
@ApiModel(value = "AppletWithdraw", description = "提现表")
@AllArgsConstructor
public class AppletWithdraw extends Entity<Long> {

    private static final long serialVersionUID = 1L;

    /**
     * 会员ID
     */
    @ApiModelProperty(value = "会员ID")
    @TableField("mid")
    @Excel(name = "会员ID")
    private Long mid;


    /**
     * 提现的金额
     */
    @ApiModelProperty(value = "提现的金额")
    @TableField("cash")
    @Excel(name = "提现的金额")
    private BigDecimal cash;

    /**
     * 提现的手续费
     */
    @ApiModelProperty(value = "提现的手续费")
    @TableField("rate")
    @Excel(name = "提现的手续费")
    private BigDecimal rate;

    /**
     * 提现账户
     */
    @ApiModelProperty(value = "提现账户")
    @TableField("withdraw_account")
    @Excel(name = "提现账户")
    private String withdrawAccount;

    @ApiModelProperty(value = "提现材料，多张图片用,隔开")
    private String withdrawImg;

    /**
     * 账户类型0:微信1:支付宝
     */
    @ApiModelProperty(value = "账户类型0:微信1:支付宝")
    @TableField("account_type")
    @Excel(name = "账户类型0:微信1:支付宝")
    private Long accountType;

    /**
     * 审核状态0:审核中1:审核通过2:不通过
     */
    @ApiModelProperty(value = "审核状态0:审核中1:审核通过2:不通过")
    @TableField("applyStatus")
    @Excel(name = "审核状态0:审核中1:审核通过2:不通过")
    private Long applyStatus;

    /**
     * 审核人
     */
    @ApiModelProperty(value = "审核人")
    @TableField("applyUser")
    @Excel(name = "审核人")
    private Long applyUser;

    /**
     * 拒绝原因
     */
    @ApiModelProperty(value = "拒绝原因")
    @TableField("reason")
    @Excel(name = "拒绝原因")
    private String reason;



    @ApiModelProperty(value = "备注")
    @TableField("remark")
    private String remark;

    /**
     * 提现订单id
     */
    @ApiModelProperty(value = "提现订单id")
    @Excel(name = "withdrawId")
    private String withdrawId;

    /**
     * 真实姓名
     */
    @ApiModelProperty(value = "真实姓名")
    @TableField("name")
    @Excel(name = "真实姓名")
    private String name;


    @TableField("order_code")
    private String orderCode;


}
